package com.project.controller;

import com.project.bean.UserBean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDate;

@RestController
@RequestMapping("my")
public class MyTestController {

    @RequestMapping("test")
    public String test(){
        return "ok";
    }

    @RequestMapping("getUser")
    public UserBean  getUser() throws Exception{
        UserBean user = new UserBean(1,"张三 ","111",3000, LocalDate.parse("1998-03-02"));
        return user;
    }

}
